﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using PhotoGallery.Abstract;
using PhotoGallery.Entities;
using System.Data.Linq;
using System.Web.Mvc;

namespace PhotoGallery.Concrete
{
    public class SqlPhotoRepository : IPhotoRepository
    {
        private Table<Photo> PhotoTable;

        public SqlPhotoRepository(string connectionString)
        {
            PhotoTable = (new DataContext(connectionString)).GetTable<Photo>();
           

        }

        public IQueryable<Photo> Photo
        {
            get { return PhotoTable; }
        }


        


    }
}